include([], 
		
function(){
	
	declare('com.unknown.Constants');
	
	DEBUG = false;
	com = {
		unknown : {}
	}
	if( !log ){
		var log = {
			debug : function(msg){
				if(DEBUG) console.log(msg);
			}
		}
	}	
	com.unknown.Constants = {
		EMPTY			   : {},
		FRAMERATE          : 1000/35,
		TOUCHABLE          : 'createTouch' in document
	};
	
	Direction = {
		LEFT  : 1,
		RIGHT : 2,
		UP    : 4,
		DOWN  : 8,
		_LAST : 8
	};
	Direction.oposite = function(index){
		var op = 0;
		op = op | (Direction.hasLeft(index) ? Direction.RIGHT : 0);
		op = op | (Direction.hasRight(index) ? Direction.LEFT : 0);
		op = op | (Direction.hasUp(index) ? Direction.DOWN : 0);
		op = op | (Direction.hasDown(index) ? Direction.UP : 0);
		return op;
	}
	Direction.isSet = function(value, direction){
		return (value & direction) == direction
	}
	Direction.hasLeft = function(value){
		return (value & Direction.LEFT) == Direction.LEFT;
	}
	Direction.hasRight = function(value){
		return (value & Direction.RIGHT) == Direction.RIGHT;
	}
	Direction.hasUp = function(value){
		return (value & Direction.UP) == Direction.UP;
	}
	Direction.hasDown = function(value){
		return (value & Direction.DOWN) == Direction.DOWN;
	}
});